package com.smh.a02IOStreamDemo2;

import java.io.FileInputStream;
import java.io.IOException;

public class CharSetDemo1 {
    public static void main(String[] args) throws IOException {


        FileInputStream fis = new FileInputStream("day26-code\\file\\a.txt");
        //读中文会有乱码
        int b;
        while ((b = fis.read()) > 0) {
            System.out.print((char) b);
        }

    }
}
